import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '邮件地址',
    align: "center", resizable: true,
    dataIndex: 'userEmail'
  },
  {
    title: '标题',
    align: "center", resizable: true,
    dataIndex: 'subject'
  },
  {
    title: '内容',
    align: "center", resizable: true,
    dataIndex: 'content'
  },
  {
    title: '附件',
    align: "center", resizable: true,
    dataIndex: 'attachmentUrl',
  },
  {
    title: '用户id',
    align: "center", resizable: true,
    dataIndex: 'userId_dictText'
  },
  {
    title: '状态',
    align: "center", resizable: true,
    dataIndex: 'status_dictText'
  },
  {
    title: '发送日志',
    align: "center", resizable: true,
    dataIndex: 'msg'
  },
  {
    title: '发送状态码',
    align: "center", resizable: true,
    dataIndex: 'code'
  },
  {
    title: '发送日期',
    align: "center", resizable: true,
    dataIndex: 'sendTime'
  },
];

// 高级查询数据
export const superQuerySchema = {
  userEmail: {title: '邮件地址',order: 0,view: 'text', type: 'string',},
  subject: {title: '标题',order: 1,view: 'text', type: 'string',},
  content: {title: '内容',order: 2,view: 'textarea', type: 'string',},
  attachmentUrl: {title: '附件',order: 3,view: 'file', type: 'string',},
  userId: {title: '用户id',order: 4,view: 'list', type: 'string',dictTable: "sys_user", dictCode: 'id', dictText: 'username',},
  status: {title: '状态',order: 5,view: 'list', type: 'string',dictCode: 'email_status',},
  msg: {title: '发送日志',order: 6,view: 'textarea', type: 'string',},
  code: {title: '发送状态码',order: 7,view: 'text', type: 'string',},
  sendTime: {title: '发送日期',order: 8,view: 'datetime', type: 'string',},
};
